package com.pxst.bank.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@ApiModel("新增请求类")
@Data
public class ServiceTimeAddReq {


    @ApiModelProperty(value = "可用银行id")
    private Long availableBankId;

    @ApiModelProperty(value = "2^0 [for Sunday] through 2^6 [for Saturday]")
    private Integer daysOfWeek;

    @ApiModelProperty(value = "暂停的截止时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endDatetime;

    @ApiModelProperty(value = "")
    private String endTime;

    @ApiModelProperty(value = "频率 1: One Time 2: Every Day 3: Periodicity")
    private Integer frequency;

    @ApiModelProperty(value = "消息")
    private String message;

    @ApiModelProperty(value = "暂停的开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startDatetime;

    @ApiModelProperty(value = "")
    private String startTime;

    @ApiModelProperty(value = "状态（0 未启用 1 启用）")
    private Integer status;

    @ApiModelProperty(value = "类型 1: Bank 2: Route (Bank) 3: Route (FI) 4: Route(QR FI)")
    private Integer type;

}
